package me.mononin.factory.preseneter.group;

import me.mononin.common.factory.model.Author;
import me.mononin.common.factory.presenter.BaseContract;

/**
 * 群组处理的Contract
 */
public interface GroupCreateContract {

    interface Presenter extends BaseContract.Presenter{
        //创建群
        void create(String name,String desc, String picture);

        //更改当前Model的选中状态
        void changeSelect(ViewModel model,boolean isSelected);
    }

    interface View extends BaseContract.RecyclerView<Presenter,ViewModel>{
        //创建成功
        void onCreateSucceed();
    }


    class ViewModel{
        //用户信息
        public Author author;

        //是否选中
        public boolean isSelected;
    }
}
